#ifndef MUTEX_H
#define MUTEX_H 

#include "List.h"
#include "Task.h"


typedef struct Mutex {
    TaskType* owner;
    ListType waitList;
    int lockedCount;
} MutexType;

void InitMutex(MutexType* mutex);
void LockMutex(MutexType* mutex);
void UnlockMutex(MutexType* mutex);


#endif